LassoScript Utility
Basics Browse Detail

[OS_Process->ReadError]

Tag Link [OS_Process->ReadError] Category OS Process
Type Member Source Available No
Support Preferred Version 8.5
Change New Data Source Any
Output Type Bytes Security Tag
Implementation Internal Sets Lasso 8.5

Description

[OS_Process->ReadError] reads any available data from the standard error output of the native process and returns a byte stream. This tag accepts one parameter which specifies the maximum number of bytes of data to retrieve. The tag will return all available data up to that number of bytes. By default all available data will be retrieved.

No character set translation is performed on the output of this type. A raw byte stream is always returned.

Syntax

Var: 'myProcess' = (OS_Process: '/bin/cat');
$myProcess->(Write: 'This is a test\n');
$myProcess->CloseWrite;
encode_html: $myProcess->ReadError;
$myProcess->Close;

Parameters

Optional Parameters
Length The maximum length in bytes of data to read from the native process.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.